package day1125;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        int  num1=   (int)(Math.random()*400) ;//要猜的数
        int  num2=0;//输入一个num2
        Scanner  sc=new Scanner(System.in);
        do{
            System.out.println("请输入您猜的数字：");
            num2=sc.nextInt();//输入int数值  nextInt();
            if(num1>num2){
                System.out.println("您猜测的数字小了");
            }else if(num1<num2){
                System.out.println("您猜测的数字大了");
            }
        }while(num1 != num2);
    }

}
